﻿using System;
using Lucene.Net.Analysis;
namespace FisheryPlatform.Search.Core.IKAnalyzer
{
    /// <summary>
    /// 全分词器
    /// </summary>
	public sealed class IKAnalyzer:Analyzer
	{
        private string _DictDataDir = "";
		public IKAnalyzer(string dictDataDir)
		{
			mircoSupported = true;
            _DictDataDir = dictDataDir;
		}
		
		private bool mircoSupported;

        public override TokenStream TokenStream(string fieldName, System.IO.TextReader reader)
        {
            return new IKTokenizer(reader, mircoSupported, _DictDataDir);
        }
    }
}